<?php

class Controller 
{   
   private static $layout = "";
   private static $template = "default";
   private static $contentFile = "";
   private static $config = "";
      
   static function setLayout($str) { self::$layout = $str; }   
   static function getLayout() { return self::$layout; }
   
   static function setTemplate($str) { self::$template = $str; }
   static function getTemplate() { return self::$template; }

   static function setContentFile($file) { self::$contentFile = $file; }
   static function getContentFile() { return self::$contentFile; }
   
   static function getConfig()
   {
       if(self::$config=="") self::$config = parse_ini_file('./config/system.ini', true);
       return self::$config;
   }
   
   static function pre() { 
       View::setPageTitle(self::$config['seo']['defaultTitle']);
       View::setKeywords(self::$config['seo']['defaultKeywords']);
       View::setDescription(self::$config['seo']['defaultDescription']);
       View::setFbTags("", "", "", "", "", "");
   }
   
   static function post() { }
}
?>
